import Vue from 'vue'
import VueRouter from 'vue-router'

import App from "../App";
import Setrule from "../views/Setrule";
import Createrule from "../views/Createrule";
import Index from "../views/Index";
import Displayrule from "../views/Displayrule"

Vue.use(VueRouter)

  const routes = [
    {
    path:"/",
    name:"登陆",
    component:Index
    },
    {
      path:"/Setrule",
      name:"调度订单配置",
      component:Index,
      children:[
        {
          path:"/Createrule",
          name:"新增配置条件",
          component:Createrule
        },
        {
          path:"/Displayrule",
          name:"查询配置条件",
          component:Displayrule
        }
      ]

    }


]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
